package com.SoftwareManage.service;

import com.SoftwareManage.entity.Role;
import com.SoftwareManage.entity.RolePermission;
import com.SoftwareManage.entity.User;
import com.SoftwareManage.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface RoleService {
    List<Role> selectAll();
    List<RolePermission> selectAlls(int page,int pageSize);
    List<String> selectRolePermissions(int id);
    List<Role> search(String role_name);
    List<RolePermission> searchs(String role_name,int page,int pageSize);
    void update(int id,String role_name,String remark);
    void deleteRolePermission(int role_id);
    void addRolePermission(int role_id,int permission_id);
    List<String> selectAllRoles();
    void addRole(String role_name,String remark);
    Role selectRole(String role_name);
    void deleteRole(int role_id);
}
